.class public Llt/noframe/gpsfarmguide/gui/SprayGui;
.super Ljava/lang/Object;
.source "SprayGui.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/gui/Gui;


# instance fields
.field private actionButtonsBar:Landroid/view/View;

.field bottNavigationBar:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;

.field private lastBottState:I

.field private lastState:I

.field mInterstitialAd:Lcom/google/android/gms/ads/InterstitialAd;

.field private rootView:Landroid/widget/FrameLayout;

.field topNavigationBar:Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 31
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 42
    iput v0, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->lastState:I

    .line 43
    iput v0, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->lastBottState:I

    return-void
.end method

.method private addNavigationBar(Landroid/content/Context;)V
    .locals 3

    const-string v0, "layout_inflater"

    .line 112
    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 113
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->rootView:Landroid/widget/FrameLayout;

    const v2, 0x7f0c00ba

    invoke-virtual {v0, v2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 115
    new-instance v1, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;

    invoke-direct {v1, p1, v0}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;-><init>(Landroid/content/Context;Landroid/view/View;)V

    iput-object v1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->topNavigationBar:Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;

    .line 116
    iget-object p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->topNavigationBar:Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->SetView()V

    .line 117
    iget-object p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->topNavigationBar:Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;

    iget v0, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->lastState:I

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->setState(I)V

    .line 118
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    iget-object v0, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->topNavigationBar:Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/Data;->setNavigationTop(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;)V

    return-void
.end method

.method private addStatusBar(Landroid/content/Context;)V
    .locals 3

    const-string v0, "layout_inflater"

    .line 126
    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 127
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->rootView:Landroid/widget/FrameLayout;

    const v2, 0x7f0c002c

    invoke-virtual {v0, v2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 128
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f070151

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimension(I)F

    move-result v1

    float-to-int v1, v1

    const/4 v2, 0x0

    .line 129
    invoke-direct {p0, v1, v2}, Llt/noframe/gpsfarmguide/gui/SprayGui;->zoomControls(IZ)V

    .line 130
    new-instance v1, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;

    iget v2, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->lastBottState:I

    invoke-direct {v1, p1, v0, v2}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;-><init>(Landroid/content/Context;Landroid/view/View;I)V

    iput-object v1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->bottNavigationBar:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;

    .line 131
    iget-object p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->bottNavigationBar:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->setView()V

    .line 132
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    iget-object v0, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->bottNavigationBar:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;

    invoke-virtual {p1, v0}, Llt/noframe/gpsfarmguide/Data;->setNavigationBottom(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;)V

    return-void
.end method

.method private showAdd()V
    .locals 5

    .line 189
    sget-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->AD_SHOW_COUNTER:Llt/minvib/magicpreferences/MagicIntegerPreference;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/minvib/magicpreferences/MagicIntegerPreference;->get(Landroid/content/Context;)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v1, 0x1

    if-ge v0, v1, :cond_0

    .line 190
    sget-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->AD_SHOW_COUNTER:Llt/minvib/magicpreferences/MagicIntegerPreference;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v2

    sget-object v3, Llt/noframe/gpsfarmguide/utils/Preferences;->AD_SHOW_COUNTER:Llt/minvib/magicpreferences/MagicIntegerPreference;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v3, v4}, Llt/minvib/magicpreferences/MagicIntegerPreference;->get(Landroid/content/Context;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    add-int/2addr v3, v1

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Llt/minvib/magicpreferences/MagicIntegerPreference;->set(Landroid/content/Context;Ljava/lang/Integer;)V

    return-void

    .line 193
    :cond_0
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/Methods;->isNetworkConnected(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_1

    sget-object v0, Llt/noframe/gpsfarmguide/utils/Preferences;->ADS_REMOVED:Llt/minvib/magicpreferences/MagicBooleanPreference;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/minvib/magicpreferences/MagicBooleanPreference;->get(Landroid/content/Context;)Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_1

    .line 194
    new-instance v0, Lcom/google/android/gms/ads/InterstitialAd;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/google/android/gms/ads/InterstitialAd;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->mInterstitialAd:Lcom/google/android/gms/ads/InterstitialAd;

    .line 195
    iget-object v0, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->mInterstitialAd:Lcom/google/android/gms/ads/InterstitialAd;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f110189

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/google/android/gms/ads/InterstitialAd;->setAdUnitId(Ljava/lang/String;)V

    .line 196
    new-instance v0, Lcom/google/android/gms/ads/AdRequest$Builder;

    invoke-direct {v0}, Lcom/google/android/gms/ads/AdRequest$Builder;-><init>()V

    const-string v1, "B43D95437FEC393D79A905EB8244FD94"

    invoke-virtual {v0, v1}, Lcom/google/android/gms/ads/AdRequest$Builder;->addTestDevice(Ljava/lang/String;)Lcom/google/android/gms/ads/AdRequest$Builder;

    invoke-virtual {v0}, Lcom/google/android/gms/ads/AdRequest$Builder;->build()Lcom/google/android/gms/ads/AdRequest;

    move-result-object v0

    .line 197
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->mInterstitialAd:Lcom/google/android/gms/ads/InterstitialAd;

    new-instance v2, Llt/noframe/gpsfarmguide/gui/SprayGui$1;

    invoke-direct {v2, p0}, Llt/noframe/gpsfarmguide/gui/SprayGui$1;-><init>(Llt/noframe/gpsfarmguide/gui/SprayGui;)V

    invoke-virtual {v1, v2}, Lcom/google/android/gms/ads/InterstitialAd;->setAdListener(Lcom/google/android/gms/ads/AdListener;)V

    .line 205
    iget-object v1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->mInterstitialAd:Lcom/google/android/gms/ads/InterstitialAd;

    invoke-virtual {v1, v0}, Lcom/google/android/gms/ads/InterstitialAd;->loadAd(Lcom/google/android/gms/ads/AdRequest;)V

    :cond_1
    return-void
.end method

.method private zoomControls(IZ)V
    .locals 4

    .line 144
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p2

    .line 145
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f07014c

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimension(I)F

    .line 146
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMapFragment()Lcom/google/android/gms/maps/SupportMapFragment;

    move-result-object v0

    .line 147
    invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 148
    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    instance-of v2, v2, Landroid/widget/RelativeLayout$LayoutParams;

    if-eqz v2, :cond_0

    .line 149
    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/16 v2, 0x9

    const/4 v3, 0x0

    .line 150
    invoke-virtual {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    const/16 v2, 0xb

    .line 151
    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/16 v2, 0xc

    .line 152
    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    const/high16 v2, 0x41200000    # 10.0f

    .line 153
    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    .line 154
    invoke-virtual {p2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object p2

    .line 153
    invoke-static {v1, v2, p2}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result p2

    float-to-int p2, p2

    mul-int/lit8 v1, p2, 0x3

    add-int/2addr v1, p1

    .line 158
    invoke-virtual {v0, p2, p2, p2, v1}, Landroid/widget/RelativeLayout$LayoutParams;->setMargins(IIII)V

    :cond_0
    return-void
.end method


# virtual methods
.method public clearGui(I)V
    .locals 3

    .line 78
    iget-object p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->bottNavigationBar:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->remove()V

    .line 79
    iget-object p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->topNavigationBar:Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->remove()V

    const/4 p1, 0x0

    const/4 v0, 0x1

    .line 80
    invoke-direct {p0, p1, v0}, Llt/noframe/gpsfarmguide/gui/SprayGui;->zoomControls(IZ)V

    .line 82
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/Data;->setDisplayTrackInMap(Llt/noframe/gpsfarmguide/sprayer/spray/DisplayTrackInMap;)V

    .line 84
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/Data;->setNavigation(Ljava/util/List;)V

    .line 85
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/Data;->setNavigationTop(Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;)V

    .line 86
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/Data;->setNavigationBottom(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;)V

    .line 87
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/Data;->setTool(I)V

    .line 89
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 90
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/Data;->setCurrent_measuring(Llt/noframe/gpsfarmguide/models/MeasuringModel;)V

    .line 91
    :cond_0
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object v0

    sget-object v2, Llt/noframe/gpsfarmguide/MapClick;->freeModeClick:Lcom/google/android/gms/maps/GoogleMap$OnMapClickListener;

    invoke-virtual {v0, v2}, Lcom/google/android/gms/maps/GoogleMap;->setOnMapClickListener(Lcom/google/android/gms/maps/GoogleMap$OnMapClickListener;)V

    .line 93
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getToolbar()Landroidx/appcompat/widget/Toolbar;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 94
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getToolbar()Landroidx/appcompat/widget/Toolbar;

    move-result-object v0

    const/16 v2, 0xc8

    invoke-static {p1, v0, v2}, Llt/noframe/gpsfarmguide/utils/Animations;->topDown(Landroid/content/Context;Landroid/view/View;I)V

    .line 96
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p1

    invoke-virtual {p1, v1}, Llt/noframe/gpsfarmguide/Data;->setGui(Llt/noframe/gpsfarmguide/gui/Gui;)V

    .line 99
    :try_start_0
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getLocationProvider()Llt/noframe/gpsfarmguide/gps/AppLocationProvider;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/gps/AppLocationProvider;->startFree()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 103
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method

.method public clearGuiWithMeasure()V
    .locals 1

    .line 70
    :try_start_0
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/models/AbstractMeasuringModel;->unmarkMeasure()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    const/4 v0, 0x0

    .line 71
    invoke-virtual {p0, v0}, Llt/noframe/gpsfarmguide/gui/SprayGui;->clearGui(I)V

    return-void
.end method

.method public getType()I
    .locals 1

    const/4 v0, 0x4

    return v0
.end method

.method public onOrientationChanged(Z)V
    .locals 0

    .line 173
    iget-object p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->bottNavigationBar:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;

    if-eqz p1, :cond_0

    .line 174
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->getState()I

    move-result p1

    iput p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->lastBottState:I

    .line 175
    iget-object p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->bottNavigationBar:Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->remove()V

    .line 178
    :cond_0
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/gui/SprayGui;->addStatusBar(Landroid/content/Context;)V

    .line 180
    iget-object p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->topNavigationBar:Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;

    if-eqz p1, :cond_1

    .line 181
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->getState()I

    move-result p1

    iput p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->lastState:I

    .line 182
    iget-object p1, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->topNavigationBar:Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/widgets/TopNavigationBar/TopRunningNavigationBar;->remove()V

    .line 185
    :cond_1
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/gui/SprayGui;->addNavigationBar(Landroid/content/Context;)V

    return-void
.end method

.method public setGui(Landroid/content/Context;Landroid/widget/FrameLayout;Llt/noframe/gpsfarmguide/models/MeasuringModel;)V
    .locals 6

    const-string p3, "layout_inflater"

    .line 52
    invoke-virtual {p1, p3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Landroid/view/LayoutInflater;

    const/4 v0, 0x0

    const v1, 0x7f0c006b

    .line 53
    invoke-virtual {p3, v1, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p3

    .line 54
    iput-object p2, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->rootView:Landroid/widget/FrameLayout;

    .line 55
    iput-object p3, p0, Llt/noframe/gpsfarmguide/gui/SprayGui;->actionButtonsBar:Landroid/view/View;

    .line 56
    invoke-virtual {p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 58
    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/gui/SprayGui;->addNavigationBar(Landroid/content/Context;)V

    .line 59
    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/gui/SprayGui;->addStatusBar(Landroid/content/Context;)V

    .line 60
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getMap()Lcom/google/android/gms/maps/GoogleMap;

    move-result-object p2

    invoke-virtual {p2, v0}, Lcom/google/android/gms/maps/GoogleMap;->setOnMapClickListener(Lcom/google/android/gms/maps/GoogleMap$OnMapClickListener;)V

    .line 62
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object p2

    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/Data;->getToolbar()Landroidx/appcompat/widget/Toolbar;

    move-result-object v1

    const/4 v2, 0x0

    const/16 v3, 0xc8

    const v4, 0x7f010030

    const v5, 0x7f010032

    move-object v0, p1

    invoke-static/range {v0 .. v5}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch;->customAnimation(Landroid/content/Context;Landroid/view/View;Landroid/view/View;III)V

    .line 63
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/gui/SprayGui;->showAdd()V

    return-void
.end method
